package day9.printer;

/**
 * @author oldliu
 * @since 1.0
 */
public class PTest {
    public static void main(String[] args) {
        Printer p=new Printer();
        p.setBrand("惠普炫彩007");
        p.setPrice(1499);

        p.show();
        p.setInk(new ColorInk());
        p.setPaper(new A4());
        p.print("教育改变生活，富婆改变人生");
        System.out.println("--------------换了纸---------");
        p.setPaper(new B5());
        p.print("王凯旋不想努力了，缺一张彩票！");
        System.out.println("----------huan了墨水");
        p.setInk(new BlackInk());
        p.print("王xx永垂不锈");
    }
}
